package com.hgkj.cloud.base.common;
import java.io.Serializable;

public class PageInfo implements Serializable {
	private static final long serialVersionUID = 3783299409507453174L;
	private int pageSize = 10;
	private int currentPage = 1;
	private int totalCount = 0;

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public int getCurrentPage() {
		return currentPage;
	}

	public void setCurrentPage(int currentPage) {
		this.currentPage = currentPage;
	}

	public int getTotalCount() {
		return totalCount;
	}

	public void setTotalCount(int totalCount) {
		this.totalCount = totalCount;
	}

	public int getCurrentCount() {
		return (this.currentPage - 1) * this.pageSize;
	}

	public int getTotalPage() {
		return (this.totalCount + this.pageSize - 1) / this.pageSize;
	}
}
